package cn.cvs.controller;

import cn.cvs.comm.KtjiaoyuInfo;
import cn.cvs.service.SysUserService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class HelloController {

    @Value("${com.ktjiaoyu.name}")
    private String name;

    @Resource
    private KtjiaoyuInfo ktjiaoyuInfo;

    @Resource
    private SysUserService sysUserService;

    @RequestMapping("/hello")
    public String hello(){
        return sysUserService.hello()+ name+"注解值: "+ ktjiaoyuInfo.getEmail();
    }
}
